import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import * as echarts from 'echarts'
import moment from 'moment'
import FileSaver from 'file-saver'
import * as XLSX from 'xlsx'
import ElementUI from 'element-ui';
import Plugin from 'v-fit-columns'
import 'element-ui/lib/theme-chalk/index.css';
Vue.prototype.$FileSaver = FileSaver; //设置全局
Vue.prototype.$XLSX = XLSX; //设置全局
Vue.prototype.$echarts = echarts
Vue.prototype.$moment = moment;//赋值使用
Vue.use(ElementUI);
Vue.use(Plugin);
// Vue.prototype.$eventBus=new Vue();
Vue.config.productionTip = false
import '@/assets/global.css'
import '@/assets/transition.css'
// Vue.filter('formatDate', function(value) {
//   return Moment(value).format('YYYY-MM-DD HH:mm:ss')
// })
new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
  },
  render: h => h(App)
}).$mount('#app')
